package com.yuanfud.common.util;

/**
 * 错误码信息
 */
public class ErrorCode {

    public static final int SUCCESS_OK=400;
    public static final String SUCCESS_OK_MSG="请求成功";

    public static final int SESSION_LOGIN_END=3000;
    public static final String SESSION_LOGIN_END_MSG="会话已结束，请重新登录";

    public static final int REQUEST_PARAM_NULL_ERROR=3001;
    public static final String REQUEST_PARAM_NULL_ERROR_MSG="请求失败，参数异常";

    public static final int SYS_ERROR=200;
    public static final String SYS_ERROR_MSG="请求失败";

    public static final int LOGIN_ERROR=3001;
    public static final String LOGIN_ERROR_MSG="登录失败，账号或密码错误";

    public static final int LOGIN_CODE_ERROR=3002;
    public static final String LOGIN_CODE_ERROR_MSG="登录失败, 验证码错误";

    public static final int LOGIN_TOKEN_CREATE_ERROR=3003;
    public static final String LOGIN_TOKEN_CREATE_ERROR_MSG="token生成失败";

    public static final int SYS_CONTENT_ERROR=500;
    public static final String SYS_CONTENT_ERROR_MSG="系统内部错误";

    public static final int BLOG_ARTICLE_TYPE_ERROR=6001;
    public static final String BLOG_ARTICLE_TYPE_ERROR_MSG="文章类别错误，或无此类别";

    public static final int BLOG_ARTICLE_TYPE_LIST_NOT_FOUND_ERROR=6002;
    public static final String BLOG_ARTICLE_TYPE_LIST_NOT_FOUND_ERROR_MSG="文章类别列表获取错误，或无类别";


    public static final int ZUUL_TOKEN_VALIDATE_NULL_ERROR=10001;
    public static final String ZUUL_TOKEN_VALIDATE_NULL_ERROR_MSG="token验证失败，无有效token";

    public static final int ZUUL_TOKEN_VALIDATE_NOT_NORMAL_ERROR=10002;
    public static final String ZUUL_TOKEN_VALIDATE_NOT_NORMAL_ERROR_MSG="token验证失败，请求非法";

    public static final int ZUUL_TOKEN_VALIDATE_TIMEOUT_ERROR=10003;
    public static final String ZUUL_TOKEN_VALIDATE_TIMEOUT_ERROR_MSG="token验证失败，token已失效";

    public static final int BLOG_ARTICLE_SUBMIT_ERROR=6003;
    public static final String BLOG_ARTICLE_SUBMIT_ERROR_MSG="提交失败";
}
